@echo off
cd PineaLua
if not exist bin (
    mkdir bin
)
if not exist build (
    mkdir build
)
cd build
cmake -G "Visual Studio 17 2022" -A x64 ..
cmake --build . --config=Release
cd ..
copy build\Release\PineaLua.exe bin\PineaLua.exe >nul 2>&1
cd ..
copy .\Pinea\Pinea\bin\*.dll .\PineaLua\bin\ >nul 2>&1